export default {
  // 用户歌单列表
  getUserSonglist (state) {
    if (state.userPlayList.length > 0) {
      return state.userPlayList
    }
  },
  getNowMusic (state) {
    if (state.nowMusic === null) {
      state.nowMusic = ''
    }
    return state.nowMusic
  },
  getNowMusicMenu (state) {
    if (state.nowMusicMenu.al === undefined) {
      return {
        al: {
          picUrl: require('../assets/logo.png'),
          name: '歌名',
          pic: 0,
          id: 0
        },
        ar: [{
          id: 0,
          name: '歌手'
        }],
        dt: 0
      }
    } else {
      return state.nowMusicMenu
    }
  },
  getMusicListIds (state) {
    return state.musiclistId
  },
  getMusicIndex (state) {
    return state.nowMusicIndex
  },
  getMusicCount (state) {
    // console.log(state.musicCount);
    return state.musicCount
  },
  getIsPlay (state) {
    return state.isPlaying
  },
  getVolumeValue (state) {
    return state.volumeValue
  },
  getShowTilt (state) {
    return state.showTilt
  },
  getLyric (state) {
    return state.lyric
  }
}
